﻿
@{
    ViewBag.Title = "体检套餐列表";
    Layout = "~/Views/Shared/_MobileLayout.cshtml";
    var comboList = ViewBag.ComboList as List<LPY.LeHealth.DTO.ComboDTO>;
}

@for (int i = 0; i < comboList.Count; i++)
{
    var isEven = (i + 1) % 2 == 0;
    if (isEven)
    {
        <div class="row" style="padding-top: 10px;background-color: rgba(248,248,248,1);">
            <div class="col-xs-4">
                <a href="@Url.Action("ComboDetail", "Mobile", new { id = comboList[i].Id })">
                    <img class="img-rounded pull-left img-responsive" src="/Asset/tijian.png">
                </a>
            </div>
            <div class="col-xs-8">
                <p>
                    <strong><a title="@comboList[i].Name" href="@Url.Action("ComboDetail", "Mobile", new { id = comboList[i].Id })">@comboList[i].Name</a></strong>
                </p>
                <p>
                    <em class="fr">@comboList[i].Hospital.Area.Name</em>
                    <em class="hpname">
                        <span>@comboList[i].Hospital.Name</span>
                    </em>
                </p>
                <p class="priceinfo">
                    @*<span>销量：888</span>*@
                    <b>¥<strong>@Math.Round(comboList[i].Price)</strong></b>
                    <s>原价：¥@Math.Round(comboList[i].Price)</s>
                    <a href="@Url.Action("ComboDetail", "Mobile", new { id = comboList[i].Id })" class="btn btn-danger">去购买</a>
                </p>
            </div>
        </div>
    }
    else
    {
        <div class="row" style="padding-top: 10px;">
            <div class="col-xs-4">
                <a href="@Url.Action("ComboDetail", "Mobile", new { id = comboList[i].Id })">
                    <img class="img-rounded pull-left img-responsive" src="/Asset/tijian.png">
                </a>
            </div>
            <div class="col-xs-8">
                <p>
                    <strong><a title="@comboList[i].Name" href="@Url.Action("ComboDetail", "Mobile", new { id = comboList[i].Id })">@comboList[i].Name</a></strong>
                </p>
                <p>
                    <em class="fr">@comboList[i].Hospital.Area.Name</em>
                    <em class="hpname">
                        <span>@comboList[i].Hospital.Name</span>
                    </em>
                </p>
                <p class="priceinfo">
                    @*<span>销量：888</span>*@
                    <b>¥<strong>@Math.Round(comboList[i].Price)</strong></b>
                    <s>原价：¥@Math.Round(comboList[i].Price)</s>
                    <a href="@Url.Action("ComboDetail", "Mobile", new { id = comboList[i].Id })" class="btn btn-danger">去购买</a>
                </p>
            </div>
        </div>
    }
}